package com.itheima.shop.state1;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2021-02-25 09:31
 **/
public class TestState {
    public static void main(String[] args) {
        Order1 order1 = new Order1();
        ResetStoreBehavior1 resetStoreBehavior1 = new ResetStoreBehavior1();
        resetStoreBehavior1.setOrder(order1);
        order1.getState1().execute();
        
        SendMsgBehavior1 sendMsgBehavior1 = new SendMsgBehavior1();
        sendMsgBehavior1.setOrder(order1);
        order1.getState1().execute();
        
    }
}
